package tool

import java.io.File

/**
 * Created by yz on 13/12/2021
 */
object Pojo {

  case class MyMessage(valid: Boolean, message: String)

  case class KeysData(keys: List[String])

  case class RsNumberData(rsNumber: String)

  case class RsNumberOpData(rsNumber: Option[String])

  case class CapsData(method: String, queryText: String, reference: String, ploidy: String,caps: String, kasp: String,
                          pickAnyway: String, maxTm: String,price: String, maxSize: String)

  case class MissionDirData(workspaceDir: File, resultDir: File, logFile: File)

  case class CommandData(workspace: File, command: List[String])

  object CommandData {

    def empty: CommandData = {
      val workspace: File = new File("")
      val commands: List[String] = List[String]()
      CommandData(workspace, commands)
    }

    def apply(workspace: File, command: String): CommandData = {
      new CommandData(workspace, List(command))
    }

  }


}
